package com.lagou.service;

import com.lagou.domain.Course;
import com.lagou.domain.CourseVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CourseService {

    /*
    * 多条件查询课程列表
    * */
    public List<Course> findByCondition(CourseVO courseVO);


    /*
    * 添加课程及讲师信息
    * */
    public void saveCourseOrTeacher(CourseVO courseVO) throws InvocationTargetException, IllegalAccessException;

    /*
    * 回显课程信息（根据课程id查询具体的课程信息和讲师信息）
    * */
    public CourseVO findCourseById(Integer id);

    /*
    * 更新课程及讲师信息
    * */
    public void updateCourseOrTeacher(CourseVO courseVO) throws InvocationTargetException, IllegalAccessException;


    /*更新状态信息*/
    public void updateCourseStatus(int courseid,int status);
}
